$(document).ready(function() {

	$(".dd_event_container").event_widget();
	$(".dd_events_container").events_widget();

    // load mainnav
    $("body").append("<div id='mustache_navtemp' style='display:none'>");
    $("#mustache_navtemp").load("components/navigation/mainnav.html #mustache_navbar",function(){
      var template = document.getElementById('mustache_navbar').innerHTML;
      var output = Mustache.render(template, {});
      $("#main_nav_container").html(output);
      $("#mustache_navtemp").remove();
    });

/*
	$('.dd_json_select').each( function() {
		populate_select(this);
	});

	$('.dd_widget').dd_widget();

	$('.dd_opener_container').each( function() {
		$(this).bind("click", function() {
			$(".dd_opener-content", this).toggle();
		});
	});

	$('.dd_eventsearch').dd_search();

	$(function() {
		$( ".datepicker" ).datepicker();
	});

*/
});